package test.yzx.pproject.act2;

import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import test.yzx.pproject.R;
import test.yzx.pproject.view.HomeSingleNumberView;

public class SingleNumberScrollActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.s_s_n_a);

        final HomeSingleNumberView nv = (HomeSingleNumberView) findViewById(R.id.nv);

        getWindow().getDecorView().postDelayed(new Runnable() {
            @Override
            public void run() {

                nv.setNumber(4);

                new Handler().postDelayed(new Runnable() {
                    public void run() {
                        nv.animTo(5, 1500);
                    }
                }, 1000);

            }
        }, 2200);

    }


}
